<legend class='hyc-legend'>
    <i class="fa fa-list-ol"></i>&nbsp;
    <span>事故列表</span>
</legend>
<div class="panel panel-default">
    <div class="panel-heading">事故列表</div>
    <div class="panel-body">
        <div class="row">
            <div class="col-md-1 text-right top7">订单号</div>
            <div class="col-md-3">
                <div class="form-group">
                    <input type="text" class="form-control hyc-color" ng-model="waybill.orderCode" placeholder="订单号">
                </div>
            </div>
            <div class="col-md-4">
                &nbsp;
            </div>
            <div class="col-md-4">
                <div class="form-group text-right">
                    <div class="btn btn-default btn-sm btn-warning" ng-click="loadData('query')">查询</div>&nbsp;&nbsp;&nbsp;
                    <div class="btn btn-default btn-sm" ng-click="clearQuery()">重置</div>
                </div>
            </div>
        </div>
        <table class="table table-bordered">
            <tr>
                <th class="text-center">TMS订单编号</th>
                <th class="text-center">起运地</th>
                <th class="text-center">目的地</th>
                <th class="text-center">用户名称</th>
                <th class="text-center">上报时间</th>
                <th class="text-center">审批状态</th>
                <th class="text-center">描述</th>
                <th class="text-center">操作</th>
            </tr>
            <tr ng-repeat="item in accident track by $index">
                <td class="text-center">{{item.orderCode}}</td>
                <td class="text-center">{{item.departProvince}}-{{item.departCity}}</td>
                <td class="text-center">{{item.arrivalProvince}}-{{item.arrivalCity}}</td>
                <td class="text-center">{{item.userName}}</td>
                <td class="text-center">{{item.createTime | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
                <td class="text-center">{{item.auditStatusText}}</td>
                <td title="{{item.description}}">
                    <p style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap; width: 200px; display: block;">{{item.description}}</p>
                </td>
                <td class="text-center">
                    <a href="javascript:;" ng-click="listPic(item.waybillId)">查看图片</a>
                    <a href="javascript:;" ng-click="auditAccident(item.id, 2)" ng-if="item.status == '1'">&nbsp;&nbsp;审核通过</a>
                    <a href="javascript:;" ng-click="auditAccident(item.id, 3)" ng-if="item.status == '1'">&nbsp;&nbsp;审核驳回</a>
                </td>
            </tr>
            <tr ng-if="accident.length <= 0">
                <td colspan="8">
                    <div class="hyc-color text-center">
                        暂无符合条件的数据
                    </div>
                </td>
            </tr>
        </table>
        <div ng-include="pageIncludeUrl" ng-if="accident.length > 0"></div>
    </div>
</div>